home *** CD-ROM | disk | FTP | other *** search
/ Software USA: Back to School / Software USA: Back to School.iso / pc / children / decoder / run / decoder.exe / decoder.dxr / script_14.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  1.2 KB  |  29 lines

  1. on exitFrame
  2.   if the frameLabel = "main" then
  3.     set the enabled of menuItem "Paste" of menu "Edit" to 0
  4.     set the enabled of menuItem "Copy" of menu "Edit" to 0
  5.     set the enabled of menuItem "Clear all fields" of menu "Edit" to 0
  6.   end if
  7.   if the frameLabel = "encode" then
  8.     set the enabled of menuItem "Paste" of menu "Edit" to 0
  9.     set the enabled of menuItem "Copy" of menu "Edit" to 1
  10.     set the enabled of menuItem "Clear all fields" of menu "Edit" to 1
  11.   end if
  12.   if the frameLabel = "decode" then
  13.     set the enabled of menuItem "Paste" of menu "Edit" to 1
  14.     set the enabled of menuItem "Copy" of menu "Edit" to 0
  15.     set the enabled of menuItem "Clear all fields" of menu "Edit" to 1
  16.   end if
  17.   if the frameLabel = "help" then
  18.     set the enabled of menuItem "Paste" of menu "Edit" to 0
  19.     set the enabled of menuItem "Copy" of menu "Edit" to 0
  20.     set the enabled of menuItem "Clear all fields" of menu "Edit" to 0
  21.   end if
  22.   if the frameLabel = "about" then
  23.     set the enabled of menuItem "Paste" of menu "Edit" to 0
  24.     set the enabled of menuItem "Copy" of menu "Edit" to 0
  25.     set the enabled of menuItem "Clear all fields" of menu "Edit" to 0
  26.   end if
  27.   go(the frame)
  28. end
  29.